import request from '@utils/request'

// 获取仪表盘概览数据
export function getDashboardOverview() {
  return request({
    url: '/admin/dashboard/overview',
    method: 'get'
  })
}

// 获取仪表盘统计数据
export function getDashboardStats(params) {
  return request({
    url: '/admin/dashboard/stats',
    method: 'get',
    params
  })
}

// 获取最近活动
export function getRecentActivities(params) {
  return request({
    url: '/admin/dashboard/activities',
    method: 'get',
    params
  })
}

// 获取销售趋势
export function getSalesTrends(params) {
  return request({
    url: '/admin/dashboard/sales-trends',
    method: 'get',
    params
  })
}

// 获取销售统计数据
export function getSalesStats(params) {
  return request({
    url: '/admin/dashboard/sales-stats',
    method: 'get',
    params
  })
}

// 获取订单统计数据
export function getOrderStats(params) {
  return request({
    url: '/admin/dashboard/order-stats',
    method: 'get',
    params
  })
}

// 获取用户统计数据
export function getUserStats(params) {
  return request({
    url: '/admin/dashboard/user-stats',
    method: 'get',
    params
  })
}

// 获取热门商品数据
export function getHotProducts(params) {
  return request({
    url: '/admin/dashboard/hot-products',
    method: 'get',
    params
  })
}

// 获取最新订单数据
export function getLatestOrders(params) {
  return request({
    url: '/admin/dashboard/latest-orders',
    method: 'get',
    params
  })
} 